package cn.com.gps169.jt808.tool;

import com.alibaba.druid.pool.DruidDataSource;

public class JDBCUtils {
	
	private static DruidDataSource dataSource  = new DruidDataSource();
	
	static{
        dataSource.setUrl("jdbc:mysql://182.92.222.140:3306/idotest?useUnicode=true&characterEncoding=UTF-8");
        dataSource.setUsername("username");//用户名
        dataSource.setPassword("password");//密码
        dataSource.setInitialSize(2);
        dataSource.setMaxActive(20);
        dataSource.setMinIdle(0);
        dataSource.setMaxWait(60000);
        dataSource.setValidationQuery("SELECT 1");
        dataSource.setTestOnBorrow(false);
        dataSource.setTestWhileIdle(true);
        dataSource.setPoolPreparedStatements(false);
    }

}
